#include <iostream>
#include <pthread.h>
#include <string>
void* running(void* str){
    std::string name = (const char*)str;
    std::cout << name << std::endl;
    return nullptr;
}
int main()
{
    pthread_t id;
    pthread_create(&id, nullptr, running, (void*)"this is thread running");
    std::cout << "this is master thread running" << std::endl;
    pthread_join(id, nullptr);
}